<template>
<div id='mercurius-loading'></div>
</template>
<script src='./mercurius-loading.ts'></script>
<style lang='scss'>
div#mercurius-loading {
  position: relative;
  background-color: #2c113a;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-radius: 50%;

  &:after, &:before {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
  }

  &:after {
    left: -10px;
    top: -5px;
    background-color: #2c96ff;
    transform-origin: 15px 10px;
    animation: axis 1s linear infinite;
  }
  &:before {
    left: -25px;
    top: -15px;
    background-color: #ea2c6d;
    transform-origin: 30px 20px;
    animation: axis 2s linear infinite;
  }
}

@keyframes axis {
  0% {
    transform: rotateZ(0deg) translate3d(0,0,0);
  }
  100% {
    transform: rotateZ(360deg) translate3d(0,0,0);
  }
}
</style>
